<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!--<body>-->

<!--</body>-->
<!--</html>-->

<!--<style>-->
<!--.input-group{-->
<!--margin-top: 45px;-->
<!--}-->

<!--</style>-->
<script>
    function addjgqu() {
        var url = $("#urlchoose").val()
        alert(url);
        $.ajax({
            type:"POST",
            url: url,
            datatype: "json",
            data: $("#form1").serialize(),
            success: function (result) {
                if (result.res==0) showconfiginfo_jg(this);
                // alert("插入成功")
                else {
                    alert("插入失败请重试")
                }
            },
            error:function () {
            }
        })
    }

</script>


<form class="form-horizontal" id="form1" onsubmit="return false">
    <div class="form-group" style="margin-top: 50px" >
        <div class="col-xs-offset-1 col-xs-2">
            <select class="form-control" id="urlchoose">
                <option>请选择题型</option>
                <option value="addjgqt">java判断试题修改</option>
                <option value="addjgqw">web判断试题修改</option>
            </select>
        </div>
    </div>
    <div class=" col-xs-offset-3 col-xs-6" style="margin-top: 50px">
        <div class=" col-xs-2">
            <select class="form-control" name="qtype">
                <option>-- 题型 --</option>
                <!--<option>&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;</option>-->
                <option value="java">-- JAVA --</option>
                <option value="web">-- WEB --</option>
            </select>
        </div>
        <div class="form-group input-group">
            <span class="input-group-addon" id="que-addon">题目</span>
            <input aria-describedby="que-addon" class="form-control" type="text" placeholder="请输入题目" name="topic">
        </div>
        <div class="form-group" style="margin-left: 0px">
            <div class=" col-xs-2">
                <select class="form-control" name="rightAnswer">
                    <option>-- 答案 --</option>
                    <!--<option>&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;</option>-->
                    <option value="true">-- 正确 --</option>
                    <option value="false">-- 错误 --</option>
                </select>
            </div>

            <button class="btn col-xs-offset-8 col-xs-2" onclick="addjgqu()">确认</button>
        </div>


    </div>
</form>